package cn.rkylin.oms.warehouseDocking.dao.qimen;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.warehouseDocking.vo.qimen.OtherStockoutCreate;
import cn.rkylin.oms.warehouseDocking.vo.qimen.OtherStockoutSkuCreate;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 奇门获取需要创建的其他发货单信息数据访问层具体实现
 * 
 * @author fengwang
 * @created 2017年10月17日
 */

@Repository(value = "iOtherStockoutCreateDAO")
public class OtherStockoutCreateDAOImpl implements IOtherStockoutCreateDAO {

    @Autowired
    protected IDataBaseFactory dao;

    private static final String selectInfoOtherStockoutByPrjIdAndStorId = "selectInfoOtherStockoutByPrjIdAndStorId";

    private static final String selectInfoOtherStockoutSkuByStockoutId = "selectInfoOtherStockoutSkuByStockoutId";

    @Override
    public List<OtherStockoutCreate> selectInfoOtherStockoutByPrjIdAndStorId(Map<String, Object> reqMap) throws Exception {
        List<OtherStockoutCreate> rList = dao.findAllList(selectInfoOtherStockoutByPrjIdAndStorId, reqMap);
        return rList;
    }

    @Override
    public List<OtherStockoutSkuCreate> selectInfoOtherStockoutSkuByStockoutId(Map<String, Object> reqMap) throws Exception {
        List<OtherStockoutSkuCreate> rList = dao.findAllList(selectInfoOtherStockoutSkuByStockoutId, reqMap);
        return rList;
    }

}
